package com.qkl.upload;


import org.apache.commons.lang3.StringUtils;

import java.sql.Time;
import java.text.SimpleDateFormat;
import java.time.LocalTime;
import java.util.*;

public class Demo {
    public static void main(String[] args) throws Exception{

        SimpleDateFormat format = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss:SSS");
        long now = System.currentTimeMillis();
        System.out.println(format.format(new Date(now)));
        System.out.println(format.format(new Date( (now + 10 * 60 * 1000) )));
        System.out.println(format.format(Time.valueOf(LocalTime.now())));


        Set<String> feedIdSet = new HashSet<>();
        feedIdSet.add("1739226208443265026");
        feedIdSet.add("1739226208900444162");
        List<String> feedIdList = new ArrayList<>();
        feedIdList.addAll(feedIdSet);
        System.out.println(feedIdList.size());
        System.out.println(feedIdList);

        SimpleDateFormat format2 = new SimpleDateFormat("HH:mm:ss:SSS");
        System.out.println(format2.format(Time.valueOf(LocalTime.now())));
        System.out.println(format2.format(new Time(System.currentTimeMillis())));
        System.out.println(format2.format(Time.valueOf("1:2:0")));
    }
}
